//父类
class Test {

    public String name;
    public int age;
    public String color;

    public void so() {
        System.out.println(name + "hhhh");
    }
}
//子类
public class Test2 extends Test{

    public String apple;

    public void fish(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
        this.apple = apple;
    }

    public void so() {

        System.out.println(name + "嘎嘎嘎嘎嘎");
    }

}
//子类
class Test3 extends Test{

    public void dou() {

        System.out.println(name + "呜呜呜呜");
    }

}
